<template>
  <div id="app">
    <Header></Header>
   <router-view ></router-view>
   <!-- 在Home或search显示，在login或Register隐藏 -->
   <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
import Header from "./components/Header/Header.vue"
import Footer from "./components/Footer/Footer.vue"
export default {
  name: 'App',
  components: {
    Header,
    Footer
  },
  
  mounted(){
    this.$store.dispatch("caryList");
  }
}
</script>

<style>
@import "../public/font-css/zongstyle.css";
@import "../public/font-css/iconfont.css";
</style>
